<extend name="public@base"/>
<block name="main">
  <div class="wrap">
    <ul class="nav nav-tabs">
      <li class="nav-item"><a class="nav-link" href="{:url('slide/index')}">幻灯片列表</a></li>
      <li class="nav-item"><a class="nav-link active" href="{:url('slide/add')}">添加幻灯片</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" method="post" action="{:url('slide/addPost')}">
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-name">名称<span class="form-required"></span></label>
        <div class="col-md-6 col-sm-10">
          <input class="form-control" id="input-name" type="text" name="name"/>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-remark">{:lang('DESCRIPTION')}</label>
        <div class="col-md-6 col-sm-10">
          <textarea class="form-control" id="input-remark" name="remark"></textarea>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button class="btn btn-primary js-ajax-submit" type="submit">{:lang('ADD')}</button><a class="btn btn-default" href="{:url('slide/index')}">{:lang('BACK')}</a>
        </div>
      </div>
    </form>
  </div>
</block>